package com.pingan.haofang.searchcloud.monitor.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author EX-SUNBIXIAO001
 * @date 2018/10/23
 * @since 1.0.0
 */
@ApiModel(description = "api状态码统计总览展示")
public class ApiStatusDTO {

    @ApiModelProperty("5XX数量")
    private Integer count_5XX = 0;

    @ApiModelProperty("4XX数量")
    private Integer count_4XX = 0;

    @ApiModelProperty("200数量")
    private Integer count_200 = 0;

    @ApiModelProperty("总请求数量")
    private Integer total = 0;

    @ApiModelProperty("成功率")
    private double successRate;

    @ApiModelProperty("平响")
    private double avgResponse;

    @ApiModelProperty("调用次数top10")
    private List<DashboardApiSummaryInfoQueryResult>  requestCountTopList;

    @ApiModelProperty("平响top10")
    private List<DashboardApiSummaryInfoQueryResult> avgResponseTopList;

    public Integer getCount_5XX() {
        return count_5XX;
    }

    public void setCount_5XX(Integer count_5XX) {
        this.count_5XX = count_5XX;
    }

    public Integer getCount_4XX() {
        return count_4XX;
    }

    public void setCount_4XX(Integer count_4XX) {
        this.count_4XX = count_4XX;
    }

    public Integer getCount_200() {
        return count_200;
    }

    public void setCount_200(Integer count_200) {
        this.count_200 = count_200;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public double getSuccessRate() {
        return successRate;
    }

    public void setSuccessRate(double successRate) {
        this.successRate = successRate;
    }

    public double getAvgResponse() {
        return avgResponse;
    }

    public void setAvgResponse(double avgResponse) {
        this.avgResponse = avgResponse;
    }

    public List<DashboardApiSummaryInfoQueryResult> getRequestCountTopList() {
        return requestCountTopList;
    }

    public void setRequestCountTopList(List<DashboardApiSummaryInfoQueryResult> requestCountTopList) {
        this.requestCountTopList = requestCountTopList;
    }

    public List<DashboardApiSummaryInfoQueryResult> getAvgResponseTopList() {
        return avgResponseTopList;
    }

    public void setAvgResponseTopList(List<DashboardApiSummaryInfoQueryResult> avgResponseTopList) {
        this.avgResponseTopList = avgResponseTopList;
    }
}
